package study.js.jvppeteer;

import com.ruiyun.jvppeteer.core.Puppeteer;
import com.ruiyun.jvppeteer.options.LaunchOptions;
import com.ruiyun.jvppeteer.options.LaunchOptionsBuilder;
import lombok.SneakyThrows;

public class Main {

    static String BIN = "C:/Program Files/Google/Chrome/Application/chrome.exe";

    @SneakyThrows
    public static void main(String[] args) {
        // 设置基本的启动配置,这里选择了‘有头’模式启动
        LaunchOptions options = new LaunchOptionsBuilder()
//                .withArgs(argList)
//                .withHeadless(false)
                .build();
        //启动
        Puppeteer.launch(options);
    }
}
